package com.zjhcsoft.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 业务系统信息表
 * </p>
 *
 * @author wzya
 * @since 2021-03-29
 */
@TableName("APP_RESOURCE")
public class AppResource implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 应用唯一标识 应用唯一标识
     */
      @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 应用标识 原系统唯一标识,eg:ORG_SYS_ID
     */
    @TableField("APP_CODE")
    private String appCode;

    /**
     * 权限域 权限域
     */
    @TableField("SCOPE")
    private String scope;

    /**
     * 渠道ID 渠道id
     */
    @TableField("CHANNEL_ID")
    private Long channelId;

    /**
     * 法人id 法人id
     */
    @TableField("CORPORATION_ID")
    private Long corporationId;

    /**
     * 默认登录类型 逗号隔开，如1,2,3
     */
    @TableField("DEFAULT_CREDENTIAL_TYPE")
    private String defaultCredentialType;

    /**
     * 创建人
     */
    @TableField("CREATED_BY")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField("CREATED_TIME")
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    @TableField("UPDATED_BY")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField("UPDATED_TIME")
    private LocalDateTime updatedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    public Long getCorporationId() {
        return corporationId;
    }

    public void setCorporationId(Long corporationId) {
        this.corporationId = corporationId;
    }

    public String getDefaultCredentialType() {
        return defaultCredentialType;
    }

    public void setDefaultCredentialType(String defaultCredentialType) {
        this.defaultCredentialType = defaultCredentialType;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "AppResource{" +
        "id=" + id +
        ", appCode=" + appCode +
        ", scope=" + scope +
        ", channelId=" + channelId +
        ", corporationId=" + corporationId +
        ", defaultCredentialType=" + defaultCredentialType +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        "}";
    }
}
